<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnConfigInMessageTemplateTable extends AbstractMigration
{
    public function up()
    {
        $this->table('message_template')
            ->addColumn('config', 'json', ['null' => true, 'comment' => '模板配置'])
            ->save();
    }

    public function down()
    {
        $this->table('message_template')
            ->removeColumn('config')
            ->save();
    }
}
